<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>

<html:html>
 <html:base/>
<html:form action="home.do">
 <font color="red">
 <html:messages id="err"  property="nameer">
 <bean:write name="err"/><br/>
 </html:messages>
 </font>
Name : <html:text property="name"/><br/>
 <font color="red">
  <html:messages id="err"  property="pwder">
 <bean:write name="err"/><br/>
 </html:messages>
 </font>
Password : <html:password property="passw"/><br/>
<html:submit value="Login"/>
<html:reset value="Cancel"/>
</html:form>
</html:html>